package com.me.videoservice.model.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName(value = "tb_video_publish_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoPublishInfo {

  @TableId(type = IdType.AUTO)
  private Long id;
  private String clientId;
  private String clientName;
  private String ip;
  private String vhost;
  private String app;
  private String stream;
  private Integer pushFlag;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime pushSDate;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime pushEDate;
}
